﻿#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H

#include <QTcpServer>


class myTcpServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit myTcpServer(QObject *parent = nullptr);

protected:
    virtual void incomingConnection(qintptr socketDescriptor);//重载此函数以实现服务器多线程处理连接请求和数据请求

signals:
    void newTcpSocketDescript(qintptr socketDescriptor);//转发套接字到其他线程
};

#endif // MYTCPSERVER_H
